import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/Tabs/Home'
    },
    //底部导航路径
    {
      path: '/Tabs',
      name: 'Tabs',
      component: () => import('@/views/TabBar/Tabs.vue'),
      children: [
        {
          path: '/Tabs/Home',
          name: 'Home',
          component: () => import('@/views/TabBar/Home.vue')
        } ,
        {
          path: '/Tabs/Message',
          name: 'Message',
          component: () => import('@/views/TabBar/Message.vue')
        },
        {
          path: '/Tabs/My',
          name: 'My',
          component: () => import('@/views/TabBar/My.vue')
        },
        {
          path:'/Tabs/quan',
          name:'quan',
          component: () => import('@/views/TabBar/Quan.vue')
        },{                                                                                                          
          path:'/Tabs/send',
          name:'send',
          component: () => import('@/views/TabBar/Send.vue')
        }
      ]
    },
    //不带底部导航的路径
     

    

  ]
})

export default router
